﻿using ITSparta.Collections;
using ITSparta.MVVM;

namespace SPConfigDBReaderApp.ViewModels
{
    public class ObjectsGroupViewModel : ViewModelBase
    {
        private ObjectViewModel _ownerObject = null;
        private ClassViewModel _baseClass = null;
        private MTObservableCollection<ObjectViewModel> _objects = new MTObservableCollection<ObjectViewModel>();

        public ClassViewModel BaseClass { get { return _baseClass; } }
        public MTObservableCollection<ObjectViewModel> Objects { get { return _objects; } }
        public int Count { get { return _objects.Count; } }

        internal ObjectsGroupViewModel(ObjectViewModel ownerObject, ClassViewModel baseClass)
        {
            _ownerObject = ownerObject;
            _baseClass = baseClass;
        }
    }
}